import typescript from 'rollup-plugin-typescript2';
import filesize from 'rollup-plugin-filesize';

export default {
  input: 'src/index.ts',
  output: [{
      file: 'build/main/coresystems-cs-ngx-communication-library.js',
      format: 'umd',
      name: 'CommunicationLibrary'
    },
    {
      file: 'build/module/coresystems-cs-ngx-communication-library.es.js',
      format: 'es',
    },
  ],
  plugins: [
    typescript({
      typescript: require('typescript'),
    }),
    filesize()
  ],
};
